<template>
  <a-button @click="downloadFileTemplate(url)">
    <template #icon>
      <DownloadOutlined />
    </template>
    <slot></slot>
  </a-button>
</template>

<script setup lang="ts">
import { downloadFileTemplate } from '@/api/modules/utils/files';
defineProps<{
  url: string;
}>();
</script>

<style lang="scss" scoped></style>
